package com.study.mike.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author KangHui
 * @Date 2023/6/20 15:49
 */
@Data
@TableName("fish_equipment")
public class FishEquipmentDO {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 类型
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 状态 0启用 1禁用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 等级
     */
    @TableField(value = "fish_rank")
    private String fishRank;

    /**
     * 材质
     */
    @TableField(value = "material")
    private String material;

    /**
     * 编码
     */
    @TableField(value = "bn")
    private String bn;

    /**
     * 数量
     */
    @TableField(value = "num")
    private Integer num;

    /**
     * 存在标识0存在 1删除
     */
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

}
